package com.company.manage.system.service;

import com.company.manage.common.base.BaseService;
import com.company.manage.common.persistence.HibernateDao;
import com.company.manage.system.dao.RoleDao;
import com.company.manage.system.entity.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * Created by HuangYong on 2016/1/23.
 * desc: 角色service
 */
@Service
@Transactional(readOnly = true)
public class RoleService extends BaseService<Role,Integer> {
    private static final String TAG = "RoleService";

    @Autowired
    private RoleDao roleDao;

    @Override
    public HibernateDao<Role, Integer> getEntityDao() {
        return roleDao;
    }
}